@mixin flex($direction:column,$items:stretch,$justify:space-between){
    display: flex;
    flex-direction: $direction;
    align-items: $items;
    justify-content: $justify;
}

div, h2, form, button {
    margin: 0;
    padding: 0;
}

.panel_header {
    height: 44px;
    line-height: 44px;
    background: -webkit-linear-gradient(top, #f3f3f3, #eeeeee);
    background: -moz-linear-gradient(top, #f3f3f3, #eeeeee);
    background: linear-gradient(top, #f3f3f3, #eeeeee);
    border-bottom: 1px solid #3b4756;
    text-align: center;
    font-size: 16px;
}

.panel_footer {
    height: 36px;
    line-height: 36px;
    background: -webkit-linear-gradient(top, #f3f3f3, #eeeeee);
    background: -moz-linear-gradient(top, #f3f3f3, #eeeeee);
    background: linear-gradient(top, #f3f3f3, #eeeeee);
    border-top: 1px solid #3b4756;
    position: absolute;
    width: 100%;
    bottom: 0px;
}

.panel_footer p {
    margin: 0px;
    padding: 0px;
    margin-left: 10px;
    color: #ADB7C3;
    font-size: 12px;
}

.panel_body {
    flex-grow: 1;
    -webkit-flex-grow:1;
    overflow-y: auto;
    background-color: white;
}

.input-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.input-group label {
    font-weight: normal;
    white-space: nowrap;
    line-height: 28px;
    flex-grow: 1;
    -webkit-flex-grow: 1;
}

.input-group .form-control{
    width: 420px;
    height: 28px;
    line-height: 28px;
}

.panel_header{
    h2 {
        font-size: 16px;
        font-weight: normal;
        line-height: 44px;
    }

    .form-inline {
        position: absolute;
        top: 8px;
        right: 10px;

        #order-type {
            height: 28px;
            line-height: 28px;
            width: 160px;
            padding: 0 12px;
        }
    }
}

.panel_title {
    padding: 0px;
    line-height: 44px;
    border-bottom: 1px solid #dddddd;
    color: #777777;
    .complaints-name {
        padding-left: 16px;
    }

    .complaints-problem {
        padding-left: 18px;
    }

    .shop-cabinet {
        padding-left: 25px;
    }
}


.list {
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 -15px;
    height: 740px;

    .list-item {
        height: 44px;
        line-height: 44px;
        border-bottom: 1px solid #dddddd;
        padding-left: 15px;

        div:last-child {
            padding-left: 5px;
        }

        &:last-child {
            border-bottom: none;
        }

        &:hover {
            background-color: #ececec;
        }

        &:last-child:hover {
            background-color: transparent;
        }
    }

    .nomore {
        text-align: center;
        line-height: 2.5;
        font-size: 12px;
        color: #ADB7C3;
    }
}

#show_info {
    @include flex();
    width: 100%;
    height: 300px;
    background: #d7d7d7;
    position: absolute;

    .info-title {
        height: 44px;
        line-height: 44px;
        border-bottom: 1px solid #3b4756;
        font-size: 16px;
        padding-left: 10px;

        button {
            height: 26px;
            line-height: 26px;
            padding: 0 12px;
        }
    }

    .body {
        overflow: auto;
        flex-grow: 1;
        -webkit-flex-grow: 1;
        .info-list{
            padding: 20px;
        }
    }
    display: none;
}

.info-list {
    .info-list-item {
        list-style: none;
        @include flex(row,flex-start,flex-start);
        line-height: 30px;

        .info-item-content {
            margin-left: 20px;
        }
    }
}

span.cancel {
    cursor: pointer;
    float: right;
    line-height: 44px;
    display: inline-block;
    margin-right: 10px;
}

.masking {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #000000;
    opacity: 0.8;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
    z-index: 3;
}

.container-modify-complaints.modal-large{
    width: 600px;
    position: absolute;
    top: 60px;
    left: 50%;
    bottom: 30px;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    background-color: white;
    z-index: 3;
    @include flex();
    display: none;
}

.container-modify-complaints .panel_header {
    font-size: 16px;
}

.container-modify-complaints .panel_body {
    padding: 15px;
}

.container-modify-complaints .panel_body .list-group {
    padding-left: 15px;
    padding-right: 15px;

    .list-group-item {
        padding-right: 0px;
        padding-bottom: 0px;
        margin-top: 10px;
        border: none;
        overflow: hidden;
    }
}

.container-modify-complaints .list-group-item textarea {
    width: 420px;
    height: 100px;
    resize: none;
    overflow-y: auto;
    overflow-x: hidden;
    outline: none;

    &:focus {
        border-color: #66afe9;
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    }
}

.container-modify-complaints .panel_footer {
    position: relative;

    button {
        margin: 0 5px;
        padding:0 10px;;
        margin-bottom: 4px;
        height: 26px;
        line-height: 26px;
    }
}
